<template>
    <div id="he-plugin-standard"></div>
</template>

<script>
    export default {
        name: "Weather",
        mounted() {
            this.init();
        },
        methods:{
            init(){
                window.WIDGET = {
                    "CONFIG": {
                        "layout": "1",
                        "width": "450",
                        "height": "150",
                        "background": "3",
                        "dataColor": "FFFFFF",
                        "key": "b5ad4b484ecc4790aeefe0ecbba1a365"
                    }
                };
                (function (d) {
                    let c = d.createElement('link');
                    c.rel = 'stylesheet';
                    c.href = '/static/css/he-standard.css';
                    let s = d.createElement('script');
                    s.src = '/static/js/he-standard.js';
                    let sn = d.getElementsByTagName('script')[0];
                    sn.parentNode.insertBefore(c, sn);
                    sn.parentNode.insertBefore(s, sn);
                })(document);
            }
        }
    }
</script>

<style scoped>

</style>